package com.erp.app.catalog.itemMaster.vo;

import java.math.BigDecimal;
import java.sql.Date;

import com.erp.app.catalog.itemMaster.criteria.ItemMasterPriceCriteria;
import com.erp.app.catalog.itemMaster.pk.ItemMasterPricePk;
import com.erp.framework.model.pk.SimpleSearchMaintStylePk;
import com.erp.framework.model.vo.SimpleSearchMaintStyleVo;

public class ItemMasterPriceVO extends SimpleSearchMaintStyleVo{

	private String itemId;
	private String custItemCode;
	private BigDecimal retailPrice;
	private BigDecimal sellingPrice;
	private String custCode;
	private BigDecimal fromQty;
	private BigDecimal toQty;
	private BigDecimal unitPrice;
	private String ccy;
	private Date validateDate;
		
	public SimpleSearchMaintStylePk getSearchMaintStylePk() {	
		return new ItemMasterPricePk(this.itemId);
	}

	protected void setDaoName() {	
		this.daoName="com.erp.app.catalog.itemMaster.dao.ItemMasterGroupCommonDao";
	}

	protected void setChildTypesName() {		
	}

	public String getCcy() {
		return ccy;
	}

	public void setCcy(String ccy) {
		this.ccy = ccy;
	}

	public String getCustCode() {
		return custCode;
	}

	public void setCustCode(String custCode) {
		this.custCode = custCode;
	}

	public String getCustItemCode() {
		return custItemCode;
	}

	public void setCustItemCode(String custItemCode) {
		this.custItemCode = custItemCode;
	}

	

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	

	public BigDecimal getFromQty() {
		return fromQty;
	}

	public void setFromQty(BigDecimal fromQty) {
		this.fromQty = fromQty;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public BigDecimal getSellingPrice() {
		return sellingPrice;
	}

	public void setSellingPrice(BigDecimal sellingPrice) {
		this.sellingPrice = sellingPrice;
	}

	public BigDecimal getToQty() {
		return toQty;
	}

	public void setToQty(BigDecimal toQty) {
		this.toQty = toQty;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Date getValidateDate() {
		return validateDate;
	}

	public void setValidateDate(Date validateDate) {
		this.validateDate = validateDate;
	}
	
	public String toString() {
		String pkStr = "PK: {itemId = " + this.itemId + "}\n";

		String colStr = "COL: {custItemCode = " + this.custItemCode
			+ "\n, retailPrice = " + this.retailPrice
			+ "\n, sellingPrice = " + this.sellingPrice
			+ "\n, custCode = " + this.custCode
			+ "\n, fromQty = " + this.fromQty
			+ "\n, toQty = " + this.toQty
			+ "\n, unitPrice = " + this.unitPrice
			+ "\n, ccy = " + this.ccy
			+ "\n, validateDate = " + this.validateDate + "}\n";

		return "ItemMasterDtlVO.toString() is:\n" + pkStr + colStr;
	}
	
}
